import numpy as np

"""
3 --- 1
       ----> ?
4 --- 2
"""
# 权重列表
weights = np.array([1, 2])
input_data = np.array([3, 4])
target = 6
# 学习率
learning_rate = 0.01
preds = (weights * input_data).sum()
error = preds - target
print(error)
